<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>事件修饰符</title>
    <script src="https://unpkg.com/vue"></script>
    <style>
        .inner{
            height: 200px;
            background-color: skyblue;
        }
    </style>
</head>
<body>
<div id="app">
    <div class="inner" @click="divfn">
        <input type="button" value="点击" @click.stop="btnfn">
    </div>
</div>

</body>
<script>
    var vm = new Vue({
        el: '#app',
        data: {

        },
        methods:{
            divfn(){
                console.log('div')
            },
            btnfn(){
                console.log('btn')
            }
        }

    })
</script>

</html>